export function localSave(k:string, v?:object | any[]) {
  if (v) {
    return localStorage.setItem(k, JSON.stringify(v));
  }
  return JSON.parse(localStorage.getItem(k) || "");
}

export function getToken() {
  return localSave("token") as string;
}
